package com.example.java.designpattern.iterator;

import java.util.HashSet;
import java.util.Set;

public class ConcreteAggregate implements Aggregate {

    private final Set<Object> elements = new HashSet<>();

    @Override
    public Iterator getIterator() {
        return new ConcreteIterator(this);
    }
}
